package cn.zjxiliu.lib_config;

import android.content.Context;

/**
 * Created by jessie on 2018/10/27.
 */

public class ConfigSDK {

    private static ConfigSDK configSDK = new ConfigSDK();

    private ConfigParserFactory factory;

    public ConfigSDK(){
        factory = new ConfigParserFactory();
    }


    public static ConfigSDK getInstance(){
        return configSDK;
    }


    public <T> T getConfig(Context context, Class<T> clazz){
        return factory.parserConfig(context, clazz);
    }

}
